<div class="backgroundFrame970Top"></div>
		<div class="backgroundFrame970">
			<div class="content contentCMS">
				<h1>{'New gallery'|t}</h1>
				<div class="form formNewMessage">
					<form method="post" action="{url label=current}" enctype="multipart/form-data">
					<div class="formItem">
						<p>{'gallery title'|t}</p><input type="text" name="title" value="{if isset($smarty.post.title)}{$smarty.post.title}{/if}"/>
						{if isset($errors.title)}<p class="error" style="display: block;">{$errors.title}</p>{/if}
					</div>
					<br/>
					<div class="formItem">
						<p>{'gallery description'|t}</p><textarea name="description">{if isset($smarty.post.description)}{$smarty.post.description}{/if}</textarea>
						{if isset($errors.description)}<p class="error" style="display: block;">{$errors.description}</p>{/if}
					</div><br/>
					<div class="formItem">
						<p>{'add photos'|t}<br/><span class="smallFnt">{'JPEG, PNG, GIF format'|t}</span></p>
						<input type="file" name="file" value="{'browse for photos'|t}" class="button" onchange="this.form.submit();"/>
					</div>
					<br/>
					
					
					<div class="clearBoth"></div>
					
					
					<div class="formGalleryPhotos">
						{foreach from=$files item=file key=item}
						<div class="item">
							<a href="#" title="Do lighboxa"><img src="{$urlStatic}/{image src=$file h=90}" alt="" class="thumb"/></a>
							<a href="{url label=current}?remove={$item}" title="Remove" class="remove">remove</a>
						</div>
						{/foreach}
						
						<div class="clearBoth"></div>
					</div>
					
					<br/>
					<div class="formSubmit formItemSpacer"><input type="submit" name="submitForm" value="add gallery / save gallery"/></div>
					
				</form>
				</div>
			</div>
		</div>
		<div class="backgroundFrame970Bottom"></div>
		
		<div class="spacer"></div>
		<br/>
